from django.test import TestCase
from django.contrib.auth.models import User
from .login import GroupModel


class GroupTestCase(TestCase):
    def setUp(self):
        User.objects.create_user(username="zhangsan", password="pass123456", email="12345678@qq.com", first_name="张三")

    def test_create(self):
        group = GroupModel
        group.name = "test_group"
        group.owner = User.objects.get(username="zhangsan")


if __name__ == "__main__":
    TestCase.main()
